import {createRouter, createWebHistory} from "vue-router";
// @ts-ignore
import mainIndex from './view/mainIndex.vue';
// @ts-ignore
import loginIndex from './view/loginIndex.vue';
// @ts-ignore
import resgister from './components/register.vue';
// @ts-ignore
import login from './components/loginacc.vue';
// @ts-ignore
import messagelab from "@/components/messagelab.vue";
const router = createRouter({
    history:createWebHistory(),
    routes:[
        {
            path:'/',
            component:loginIndex,
            children:[
                {
                    path: '',
                    component: login
                },
                {
                    path: '/reg',
                    component: resgister
                },

            ]
        },
        {
            path:'/index',
            component:mainIndex,
            children:[
                {
                    path: '/index/meglist',
                    component: messagelab
                },
            ]
        }
    ]


});
export default router;